package com.igame.mapper;

import com.igame.entity.Goods;
import com.igame.entity.GoodsImg;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodsImgMapper {

    @Select("select * from goods_img where goods_id=#{goodsId}")
    List<GoodsImg> getGoodsById(int goodsId);

    @Insert("INSERT INTO  goods_img(id, goods_id, goods_img) VALUES (null,#{goodsId},#{GoodsImg})")
    Integer addGoodsImg(GoodsImg goodsImg);
}
